package com.oa.co.mapper;

import com.oa.co.pojo.Purchase;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Lone Ranger
 */
public interface PurchaseMapper {
    Integer addPurchase(Purchase purchase);

    Integer modifyPurchase(Purchase purchase);

    Integer deletePurchase(String purchase_id);

    Integer deletePurchaseMulti(List<Purchase> list);

    List<Purchase> findPurchaseByCondition(@Param("purchase_id") String purchase_id, @Param("purchase_username") String purchase_username, @Param("purchase_dept") String purchase_dept);
}
